package com.tiantianfresh.model.web;

/* *
 *类名：AlipayConfig
 *功能：基础配置类
 *详细：设置帐户有关信息及返回路径
 *修改日期：2021-11-13
 *说明：
 *以下代码只是为了方便商户测试而提供的样例代码，商户可以根据自己网站的需要，按照技术文档编写,并非一定要使用该代码。
 *该代码仅供学习和研究支付宝接口使用，只是提供一个参考。
 */

public class AlipayConfig {

//↓↓↓↓↓↓↓↓↓↓请在这里配置您的基本信息↓↓↓↓↓↓↓↓↓↓↓↓↓↓↓

	// 应用ID,您的APPID，收款账号既是您的APPID对应支付宝账号
	public static String app_id = "2016100200644032";

	// 商户私钥，您的PKCS8格式RSA2私钥
	public static String merchant_private_key =	"MIIEvgIBADANBgkqhkiG9w0BAQEFAASCBKgwggSkAgEAAoIBAQCjSESEQsdO9Fw1JLdwoMkBkKteYf1B5n6LFULw2zILeov/8NLu5jkA8WicbACaepPWA0tR0lJXxvzLc4MfdpGzYUzvYuw6WHXg0ZJm8hYS0ip4wQx/R9hZT3wzliOU4n9kX9mO2WXJ6sxiDo4qsS6oC+O3dFIzbulv1VKGeV8Bln7nop9qUtNs4LdhGECIhhGSkIDJVF81cT89fH8uhULTZwhjKGAVA/LJk96XM6R6Ivr/iGIgm47v9Ui4Y2IfNVYZx9MD7zQzKcVpxCsF4Nu/pwa3Adm0Kg1S4V2MtV+0VGVOb4tdreiOJcknXxeyk4YPW78Wq3P3i1RuoX/diTehAgMBAAECggEBAKFS8pc2n1Mr7bp4B2IZCeAo/pfm+uFUiWyDWjs8Zqqerpn2Z4GwJ1v+KFx7/PCj8VK+uHkj80VUjkm5XDEG5he0J95Q/5L5+aVhimN6BkMcMOhT3DQZWPGMresOCSO90R3r8bjIpGAmQz8SoHYfzzgrXxbPr7OvfqaGvt2sJykZ4004J6v4CIylzklNUOsbx4U0guyUgD8IoL+AXwDuooLHQXqGroZLsvvSGqE3bA2f9C/bVTFvyL5ca6kjFgioTf5fmhyG+HGFSyHGxwPqpuJVDcH6HJxui4bKfP5PdfRXnZFm8e22s4Qq2ClEKVRCOlSlf7tctx7prGrt0OVRJUECgYEAzlDw8dKeW+em1N/hoTmQc9KdccmrefjVRTOBlx3T2xw3bE/Z7jcjeDYYST9fhwFU52H3k+zN/oR0lkh7E/+Myj/phuVGJ7bL/zFGR0kOQAsd2fp5UAIei8QGEqvQhSMRncDSnJORydV5Dp/UqAXqCAwQ4pJXxot4cnPGPiFm1FkCgYEAyppbdE3pe5H2ljUlxWpjBZpr85N6vuWCA6VPFrJhkXXHRuRRMkDVsz67nj/Rb/3L4A2k9vgKVJLYK6UFbUBdgBQXPDrORagvZ2CX8tp64ebNX8YAtJcIhXJyKLZT37xOM6se5v+PY/UcsYfWBNip3I5TXTYYVvxlpGx/fodrtIkCgYAVybR4RT7WA9O5fV8tkI+xu5dG8f465k1XfoX7+HlsFUHBHXmtT4NeaZANBDVJY5mcydrEc2iZrVFGoablyMIMhc1aopHTFdnbPE/orU1k9AeWAn6XNXIWXoAprp1ZwgdVOozDXk4yG2oqYjSp/d3mNaf+1WeRnx78Lz/LRem/GQKBgH/eH64tphg5LRnr/SS1Wj2lElCuWZ+1lfLbGClI988oOFcDrkM7LCRuiVb9DB/UXCHSOrUsIsjxzMDu65fiMaCuDWQT8S+BUDm8euno/fkpA6FYhAV19QjUDDypphHk9K4jZ+N+k28QucVJ58czPzFWGkMP6xirPzMgzu56ZX2RAoGBAInrRbEWV8zvCAEtdY4vOUJVzytPUxzcsUwwDRVeHVTbmTxHrWJGaqcpA486xdW+cJu3lnxXvOT+b9gnfdgWEjHFass/MVr2gPUIuA8P1rhYtpKi5g+LhBmEvv5DzvTVKwP/1OqVLAOMgRtceSjuWYl1Nrzlg6+Dqu59X+L+sfIl";


	// 支付宝公钥,查看地址：https://openhome.alipay.com/platform/keyManage.htm 对应APPID下的支付宝公钥。
	public static String alipay_public_key = "MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvx1qAcyzcqqSpOmDe4n5sZTZqCTbzyH39pL3ZAesqIaipIJOzWz2oafI0JleeE9CstAEmLBU3UT1LSjN0q89vXRuReOJwgeLklZumZXG+jWVaw4At/3hMTs/i8Ekirzk7L94jn6ThRz97EJWS7t/FLztDh2OuBaZqj4ELbumjdIMvGcnvwCplyGNKx2efvzFi4KqhK9i8+z0hqvRWjJOKPtzlhCit4KyNA8swBo3qIr+seDWWagAOoHugKHom1Piezhi/cMwcD3/rqTbuWmmmPcnAA7i+LsmwZuU/CZ4kxfheUHtnf0aTgCNy9q74eHvAinXt4F5nazjzsJ8fLiTwQIDAQAB";


	// 服务器异步通知页面路径  需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String notify_url = "http://工程公网访问地址/alipay.trade.page.pay-JAVA-UTF-8/notify_url.jsp";

	// 页面跳转同步通知页面路径 需http://格式的完整路径，不能加?id=123这类自定义参数，必须外网可以正常访问
	public static String return_url = "http://工程公网访问地址/alipay.trade.page.pay-JAVA-UTF-8/return_url.jsp";

	// 签名方式
	public static String sign_type = "RSA2";

	// 字符编码格式
	public static String charset = "utf-8";

	// 支付宝网关
	public static String gatewayUrl = "https://openapi.alipaydev.com/gateway.do";

	// 支付宝网关
//	public static String log_path = "C:\\";


//↑↑↑↑↑↑↑↑↑↑请在这里配置您的基本信息↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑

	/**
	 * 写日志，方便测试（看网站需求，也可以改成把记录存入数据库）
	 * @param sWord 要写入日志里的文本内容
	 */
//    public static void logResult(String sWord) {
//        FileWriter writer = null;
//        try {
//            writer = new FileWriter(log_path + "alipay_log_" + System.currentTimeMillis()+".txt");
//            writer.write(sWord);
//        } catch (Exception e) {
//            e.printStackTrace();
//        } finally {
//            if (writer != null) {
//                try {
//                    writer.close();
//                } catch (IOException e) {
//                    e.printStackTrace();
//                }
//            }
//        }
//    }
}

